﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/masDefault.master" AutoEventWireup="true"
    CodeFile="Language.aspx.cs" Inherits="WebTeamplate.Admin_Language" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ctMain" runat="Server">
    <table class="noneborder" style="width: 100%;">
        <tr>
            <td>
                <asp:Button ID="btnAddNew" runat="server" CssClass="ui-state-default ui-corner-all ui-state-focus"
                    OnClick="btnAddNew_Click" />
            </td>
        </tr>
    </table>
    <div class="hastable">
        <table cellspacing="0">
            <asp:Repeater ID="rptData" runat="server" OnItemDataBound="rptData_ItemDataBound"
                OnItemCommand="rptData_ItemCommand">
                <HeaderTemplate>
                    <thead>
                        <tr>
                            <td style="width: 30px">
                                <%=Resources.Resource.RowHeaderNo%>
                            </td>
                            <td>
                                <asp:LinkButton ID="lbtnName" CssClass="headerLink" runat="server" CommandName="SortOrder"
                                    CommandArgument="Name" Text="Tên ngôn ngữ">                         
                                </asp:LinkButton>
                            </td>
                            <td style="width: 50px">
                                <%=Resources.Resource.RowHeaderSortOrder%>
                            </td>
                            <td style="width: 50px">
                                <%=Resources.Resource.RowHeaderPublish%>
                            </td>
                            <td style="width: 90px">
                            </td>
                        </tr>
                    </thead>
                </HeaderTemplate>
                <ItemTemplate>
                    <tr>
                        <td class="repeaterCenterData">
                            <asp:Literal ID="ltrNo" runat="server"></asp:Literal>
                        </td>
                        <td class="repeaterLeftData">
                            <asp:Literal ID="ltrName" runat="server"></asp:Literal>
                        </td>
                        <td class="repeaterCenterData">
                            <asp:ImageButton ID="imgOrderDown" runat="server" ImageUrl="~/App_Themes/Admin/images/tick.png"
                                CommandName="OrderDown" />
                            <asp:ImageButton ID="imgOrderUp" runat="server" ImageUrl="~/App_Themes/Admin/images/tick.png"
                                CommandName="OrderUp" />
                        </td>
                        <td class="repeaterCenterData">
                            <asp:ImageButton ID="btnPublish" runat="server" ImageUrl="~/App_Themes/Admin/images/tick.png"
                                CommandName="publish" />
                        </td>
                        <td class="repeaterCenterData">
                            <asp:HyperLink ID="hplEdit" Text="Edit" runat="server"></asp:HyperLink>
                            |
                            <asp:LinkButton ID="lbtnDelete" runat="server" Text="Delete" CommandName="delete"
                                OnClientClick="return ConfirmDelete();"></asp:LinkButton>
                        </td>
                    </tr>
                </ItemTemplate>
                <AlternatingItemTemplate>
                    <tr class="alt">
                        <td class="repeaterCenterData">
                            <asp:Literal ID="ltrNo" runat="server"></asp:Literal>
                        </td>
                        <td class="repeaterLeftData">
                            <asp:Literal ID="ltrName" runat="server"></asp:Literal>
                        </td>
                        <td class="repeaterCenterData">
                            <asp:ImageButton ID="imgOrderDown" runat="server" ImageUrl="~/App_Themes/Admin/images/tick.png"
                                CommandName="OrderDown" />
                            <asp:ImageButton ID="imgOrderUp" runat="server" ImageUrl="~/App_Themes/Admin/images/tick.png"
                                CommandName="OrderUp" />
                        </td>
                        <td class="repeaterCenterData">
                            <asp:ImageButton ID="btnPublish" runat="server" ImageUrl="~/App_Themes/Admin/images/tick.png"
                                CommandName="publish" />
                        </td>
                        <td class="repeaterCenterData">
                            <asp:HyperLink ID="hplEdit" Text="Edit" runat="server"></asp:HyperLink>
                            |
                            <asp:LinkButton ID="lbtnDelete" runat="server" Text="Delete" CommandName="delete"
                                OnClientClick="return ConfirmDelete();"></asp:LinkButton>
                        </td>
                    </tr>
                </AlternatingItemTemplate>
            </asp:Repeater>
        </table>
    </div>
    <input type="hidden" id="hidListId" runat="server" value="" />
    <input type="hidden" id="hidListIdSelect" runat="server" value="" />

    <script type="text/javascript">


        // return the value of the radio button that is checked
        function ConfirmDelete() {
            var yes = confirm('<%=Resources.Resource.ConfirmDelete %>');
            return yes;
        }       
        
       
       
    </script>

</asp:Content>
